package com.levi.service.impl;

import com.levi.pojo.SysRole;
import com.levi.mapper.SysRoleMapper;
import com.levi.service.SysRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author levi
 * @since 2021-06-21
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements SysRoleService {

    @Autowired
    private SysRoleMapper roleMapper;

    @Override
    public List<SysRole> listRoleByUserId(Integer userId) {
        return roleMapper.listRoleByUserId(userId);

    }
}
